import Vue from 'vue'
import App from './App'
import '@/../static/vant-weapp/dist/common/index.wxss'
import '@/assets/less/global.less'
import '@/assets/iconfont/iconfont.css'
import moment from 'moment'
import store from '@/store'
import JsBridge from '@/common/MpConnectNative'
import qs from 'qs'

Vue.prototype.$store = store
Vue.prototype.$moment = moment
Vue.prototype.$qs = qs
Vue.prototype.nativeBridge = JsBridge.getInstance()
Vue.prototype.pushNativelink = function (data) {
  if (!data) {
    return
  }
  this.nativeBridge.callNativeHandler(data)
}
Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue({
  ...App,
  store
})
app.$mount()
